package com.weactivity.service;

import com.weactivity.dto.PageQueryDTO;
import com.weactivity.dto.PageResult;
import com.weactivity.dto.ReserveDTO;
import com.weactivity.dto.ResourceDTO;
import com.weactivity.entity.Activity;
import com.weactivity.entity.Resource;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

public interface ResourceService {
    //创建资源
    void newResource(ResourceDTO resourceDTO);


    PageResult pageQuery(PageQueryDTO pageQueryDTO);

    void reserve(ReserveDTO reserveDTO);

    void updateById(Integer id);

    Map<String,List<Resource>> isConficted(Map<String, String> resourceInfo, LocalDateTime beginTime,LocalDateTime endTime);

    Map<String,Object> fillResourceWithAct(Activity activity, Map<String, String> resourceInfo, List<Resource> usableResourceList);

    Map<String,List<Resource>> settleResourceConfict(Activity activity, Map<String, String> resourceInfo, List<Resource> confictResourceList);
}
